package com.gec.dao;

import com.gec.domain.Room;
import com.gec.domain.RoomType;
import com.gec.domain.Storey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface RoomDao {

    //+-----------------------------------Room--------------------------------------------+
    List<Room> getRoomList(Map map);

    void addRoom(Room room);

    void updateRoom(Room room);

    void delRoom(String id);

    Room getRoomById(String id);
    //+-----------------------------------RoomType--------------------------------------------+

    List<RoomType> getRoomTypeList(Map map);

    void addRoomType(RoomType roomType);

    void updateRoomType(RoomType roomType);

    void delRoomType(String id);

    RoomType getRoomTypeById(String id);

    //+-----------------------------------Storey--------------------------------------------+
    List<Storey> getStoreyList(Map map);

    void addStorey(Storey storey);

    void updateStorey(Storey storey);

    void delStorey(String id);

    Storey getStoreyById(String id);
}
